<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Console extends CI_controller {

	public function __construct(){
		parent::__construct();
	}

	public function index(){
        // die();
		$data = array();
		if($this->session->userdata('user') !== false) {
			$data['user'] = json_encode($this->session->userdata('user'));
		}
		$this->load->view('zm/console',$data);
	}

    private function _ShowType4Html($arr){
        $result = array();
        foreach ($arr as $k => $v) {
            $result[] = $k.'=>'.$v;
        }
        return $result;
    }

	public function getApis() {
        // die();
		$apis = array(
			array(
                'url' => 'api_activity/getHb',
                'title' => '游戏-获取红包',
                'group_name' => '优酷问答',
                'params' => array(
									array('name' => 'openid','value' => 'oc0Pqv73Lo0H2pFUYBnzLEkFh8g0'),
									array('name' => 'openid_md5','value' => '82b7e89e6eea5af4fef0aae6c8ab454b'),
									array('name' => 'activity','value' => ''),
									array('name' => 'code','value' => ''),
									array('name' => 'city','value' => '邵阳'),
                ),
                'remark' => '',
            ),
		);

		$this->response->setSuccess();
		$this->response->setItems($apis);
		$this->response->responseExit();
	}
}
/* End of file console.php */
/* Location: ./application/controllers/console.php */
